<{include file="header.html"}>
<link href="themes/css/detection.css" rel="stylesheet" type="text/css" media="screen">
<div id ="d_sidebar">
	<h2><a href ="#">告警设置</a></h2>
	<div class = "d_title">
		<span>告警通知</span><br>
	</div>
		&nbsp;&nbsp;&nbsp;<a href ="#"><span>告警通知历史</span></a><br>
		&nbsp;&nbsp;&nbsp;<a href = "#"><span>告警通知统计</span></a><br>
	<div class = "d_title">
		<span>故障管理</span><br>
	</div>
		&nbsp;&nbsp;&nbsp;<a href ="#"><span>故障历史</span></a><br>
	<div class = "d_title">
		<span>告警通知设置</span><br>
	</div>
		&nbsp;&nbsp;&nbsp;<a href = "#"><span>站点监控</span></a><br>
	<div class = "d_title">
		<span>自定义告警</span><br>
	</div>
		&nbsp;&nbsp;&nbsp;<a href = "#"><span>自定义告警线状态</span></a>
</div>

<div id = "d_container">
	<p><{$contents}></p>
	<p><{$web_title}></p>
	<p><{$web_domain}></p>
<!--开始循环页码，同时如果循环到当前页则不显示链接-->
<{foreach from=$results item=thepage}>
	<{if $thepage != $pager.current_page}>
	<table width="900" border="0" align="center">
		<tr>
				<td width="150">检测时间:<{$thepage.addtime|date_format:'%Y-%m-%d %H:%M:%S'}></td>				
				<td width="100">状态:<{$thepage.status_code}></td>
				<td width="100">IP：<{$thepage.site_ip}></td>				
				
		</tr>
	</table>
	<{else}>
		<b><{$thepage}></b>
		检测时间：<{$thepage.addtime|date_format:'%Y-%m-%d %H:%M:%S'}>
		状态：<{$thepage.status_code}>
		IP:<{$thepage.site_ip}>
	<{/if}>
<{/foreach}>

<{if $pager}>
共有记录<{$pager.total_count}>条，共有<{$pager.total_page}>页（每页<{$pager.page_size}>条记录）：
<!--在当前页不是第一页的时候，显示前页和上一页-->
<{if $pager.current_page != $pager.first_page}>
<a href="<{spUrl c=main a=nrecord page=$pager.first_page keyword=$keyword}>">前页</a> | 
<a href="<{spUrl c=main a=nrecord page=$pager.prev_page keyword=$keyword}>">上一页</a> | 
<{/if}>
<!--在当前页不是最后一页的时候，显示下一页和后页-->
<{if $pager.current_page != $pager.last_page}> | 
<a href="<{spUrl c=main a=nrecord page=$pager.next_page keyword=$keyword}>">下一页</a> | 
<a href="<{spUrl c=main a=nrecord page=$pager.last_page keyword=$keyword}>">后页</a>
<{/if}>
<{/if}>

</div>
<div class = "clear"></div>

<{include file="footer.html"}>